package qianting.news.gateway.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @program: big-event
 * @des:
 * @author: tzx
 * @create: 2023-11-03 14:48
 */

@Data
public class LoginDto {

    @NotBlank(message = "昵称不能为空")
    @Size(min = 3,max = 10,message = "用户名长度在3-10之间")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Size(min = 4,max = 10,message = "密码长度在4-10之间")
    private String password;

}
